package routers

import (
	"github.com/gin-gonic/gin"
	v1 "teacher-helper/api/v1"
	"teacher-helper/middleware"
)

func InitGradeRouter(Router *gin.RouterGroup)  {
	GradeRouter := Router.Group("grade").Use(middleware.JWTAuth())
	{
		GradeRouter.GET("/getGradeList", v1.GetGradeList)
		GradeRouter.GET("/getRoleGrade", v1.GetRoleGrade)
		GradeRouter.POST("/addGrade", v1.AddOneGrade)
		GradeRouter.PUT("/updateGrade", v1.UpdateGrade)
		GradeRouter.DELETE("/deleteGrade", v1.DeleteGrade)
	}
}
